# from typing import List
#
# class Solution:
#     def twoSum(self, nums: List[int], target: int) -> List[int]:
#         hash_map = {}
#         for i, num in enumerate(nums):
#             complement = target - num
#             if complement in hash_map:
#                 return [hash_map[complement], i]
#             hash_map[num] = i
#         return []
from os import environ
# from typing import  List
# class Solution:
#     def twoSum(self,nums:List[int],target:int)->List[int]:
#         hash_map={}
#         for i,num in enumerate(nums):
#             complement=target-num
#             if complement in hash_map:
#                 return [hash_map[complement],i]
#             hash_map[num]=i
#         return []


# from typing import List
# class Solution:
#     def twoSum(self,nums:List[int],target:int)->List[int]:
#         hash_map={}
#         for i ,num in enumerate(nums):
#             complement=target-num
#             if complement in hash_map:
#                 return [hash_map[complement],i]
#             hash_map[num]=i
#         return []

# from typing import List
# class Solution:
#     def twoSum(self,nums:List[int],target:int)->List[int]:
#         hash_map={}
#         for i,num in enumerate(nums):
#             complement=target-num
#             if complement in hash_map:
#                 return [hash_map[complement],i]#hash_map为字典，键为nums列表中的值，键的值为nums值对应的索引
#             else:
#                 hash_map[num]=i
#         return []
# from typing import List
# class Solution:
#     def twoSum(self,nums:List[int],target:int)->List:
#         hash_map={}
#         for i,num in enumerate(nums):
#             complement=target-num
#             if complement in hash_map:
#                 return [hash_map[complement],i]
#             else:
#                 hash_map[num]=i
#
#             return []



# from typing import List
# class Solution:
#     def twoSum(self,nums:List[int],target:int)->List:
#         hash_map={}
#         for i,num in enumerate(nums):
#             complement=target - num
#             if complement in hash_map:
#                 return [hash_map[complement],i]
#             else:
#                 hash_map[num]=i
#         return []

# from typing import  List
# class Solution:
#     def  twoSum(self,nums:List[int],target:int)->List:
#         hash_map={}
#         for i,num in enumerate(nums):
#             complement=target-num
#             if complement in hash_map:
#                 return [hash_map[complement],i]
#             else :
#                 hash_map[num]=i
#         return []

# from typing import List
# class Solution:
#
#     def twoSum(self,nums:List[int],target:int)->List:
#         for i,num in enumerate(nums):
#             hash_map = {}
#             complement=target-num
#             if num in hash_map:
#                 return [hash_map[complement],i]
#             else :
#                 hash_map[num]=i
#         return []










